package com.czy;

import java.util.Scanner;

public class 增强Switch {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = switch (scanner.nextInt()) {
            case 1 -> "123";
            case 2 -> "456";
            case 3 -> "789";
            case 4 -> "0";
            default -> throw new IllegalStateException("Unexpected value: " + scanner.nextInt());
        };
        System.out.println(s);
    }
}
